var role = require("../lib/role");
module.exports = {
	prefix: "/user_comment",
	get: {
	},
	post: {
		"/like/:comment_id": function() {
			var user = role.getUser(this);
			var comment = user.likeComment(this.params.comment_id);
			this.body = ResponObj("json", comment.getDetail(user._id));
		},
		"/unlike/:comment_id": function() {
			var user = role.getUser(this);
			var comment = user.unlikeComment(this.params.comment_id);
			this.body = ResponObj("json", comment.getDetail(user._id));
		},
	},
	put: {
	},
	delete: {
	}
}